package com.wsx.ones.akka.actor;

import akka.actor.UntypedAbstractActor;
import com.wsx.ones.akka.domian.Data;

/**
 * @author wangshuaixin
 * @Title: com.wsx.ones.akka.actor.LogActor
 * @Description: TODO
 * @date 2019/05/10
 */
public class LogActor extends UntypedAbstractActor {

    @Override
    public void onReceive(Object message) throws Throwable {
        if (message instanceof Data) {
            Data data = (Data) message;
            System.out.println("log data :" + data.toString());
        }
    }
}
